#ifndef PLAYER_GFX_H
#define PLAYER_GFX_H
uint16 test3_palette[11] = {
	RGB15(0, 31, 2) | BIT(15),
	RGB15(0, 0, 0) | BIT(15),
	RGB15(3, 1, 0) | BIT(15),
	RGB15(4, 7, 18) | BIT(15),
	RGB15(8, 12, 26) | BIT(15),
	RGB15(24, 14, 5) | BIT(15),
	RGB15(27, 29, 29) | BIT(15),
	RGB15(29, 14, 2) | BIT(15),
	RGB15(30, 23, 31) | BIT(15),
	RGB15(31, 17, 29) | BIT(15),
	RGB15(31, 21, 9) | BIT(15)
};

u8 test3_sprites[4][256] = {
  {	0,	1,	0,	0,	0,	0,	0,	1,	0,	1,	0,	0,	0,	0,	0,	1,
   	0,	8,	1,	1,	1,	0,	8,	1,	0,	8,	1,	1,	1,	0,	8,	1,
   	0,	10,	10,	10,	10,	10,	10,	1,	0,	10,	10,	10,	10,	10,	10,	1,
   	1,	7,	7,	6,	10,	6,	7,	7,	1,	7,	7,	6,	10,	6,	7,	7,
   	0,	5,	7,	5,	5,	5,	5,	1,	0,	5,	7,	5,	5,	5,	5,	1,
   	0,	0,	5,	5,	5,	5,	1,	1,	0,	0,	5,	5,	5,	5,	1,	0,
   	0,	1,	10,	4,	3,	4,	1,	0,	0,	1,	1,	3,	4,	4,	7,	0,
   	0,	0,	1,	3,	1,	4,	1,	0,	0,	0,	3,	3,	1,	3,	1,	0,
   	0,	1,	0,	0,	0,	0,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	8,	1,	1,	1,	0,	8,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	10,	10,	10,	10,	10,	10,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	1,	7,	7,	6,	10,	6,	7,	7,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	5,	7,	5,	5,	5,	5,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	1,	5,	5,	5,	5,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	1,	4,	3,	4,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1,	3,	1,	4,	1,	0,	0,	0,	3,	3,	1,	3,	1,	0,
   	0,	1,	0,	0,	0,	0,	0,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	8,	1,	1,	1,	0,	8,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	10,	10,	10,	10,	10,	10,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	1,	7,	7,	6,	10,	6,	7,	7,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	5,	7,	5,	5,	5,	5,	1,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	1,	5,	5,	5,	5,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	1,	4,	3,	4,	1,	10,	0,	0,	0,	0,	0,	0,	0,	0,	0,
   	0,	0,	4,	3,	1,	1,	1,	0,	0,	0,	0,	0,	0,	0,	0,	0 }
};

uint16 player_palette[12] = {
	RGB15(0, 31, 0) 	| BIT(15), //0	Transparent
	RGB15(0, 0, 0) 		| BIT(15), //1	Black
	RGB15(31, 17, 29) 	| BIT(15), //2	Dark Pink
	RGB15(31, 24, 31)	| BIT(15), //3	Light Pink
	RGB15(31, 22, 10) 	| BIT(15), //4	Light Orange
	RGB15(30, 15, 3)	| BIT(15), //5	Medium Orange
	RGB15(24, 14, 6) 	| BIT(15), //6	Dark Orange
	RGB15(31, 31, 31) 	| BIT(15), //7	Eye White
	RGB15(14, 17, 28) 	| BIT(15), //8	Light Blue
	RGB15(9, 12, 27) 	| BIT(15), //9	Medium Blue
	RGB15(4, 7, 18) 	| BIT(15), //10	Dark Blue
	RGB15(0, 0, 0) 		| BIT(15)  //11	?
};

u8 player_tileset[3][256] = {
	//FRONT STANDING	
	{	0, 1, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 0,
		0, 1, 2, 1, 0, 0, 0, 0, 0, 0, 0, 0, 1, 2, 1, 0,
		0, 1, 3, 2, 1, 0, 1, 1, 1, 1, 0, 1, 3, 2, 1, 0,
		0, 1, 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, 0,
		0, 1, 6, 6, 5, 6, 6, 6, 6, 6, 6, 5, 6, 6, 1, 0,
		0, 0, 1, 6, 6, 6, 6, 3, 2, 6, 6, 6, 6, 1, 0, 0,
		0, 0, 0, 1, 6, 6, 6, 6, 6, 6, 6, 6, 1, 0, 0, 0,
		0, 0, 1, 8, 1, 1, 1, 1, 1, 1, 1, 1, 8, 1, 0, 0,
		0, 0, 1, 5, 9, 9, 10,10,9, 9, 9, 9, 5, 1, 0, 0,
		0, 0, 1, 1, 1, 1, 1, 1, 10,1, 1, 1, 1, 1, 0, 0,
		0, 0, 0, 1, 10,10,10,1, 1, 10,10,10,1, 0, 0, 0,
		0, 0, 0, 0, 1, 1, 1, 0, 0, 1, 1, 1, 0, 0, 0, 0 }
};


//GUI STUFF
uint16 health_palette[9] = {
	RGB15(0, 0, 0) 		| BIT(15), //0	Transparent
	RGB15(19, 7, 7) 	| BIT(15), //1	Edge Light
	RGB15(12, 3, 3) 	| BIT(15), //2	Edge Medium
	RGB15(10, 2, 2)		| BIT(15), //3	Edge Dark
	RGB15(31, 27, 24) 	| BIT(15), //4	Highlight
	RGB15(28, 9, 6)		| BIT(15), //5	Red Light
	RGB15(31, 0, 0) 	| BIT(15), //6	Red Medium
	RGB15(25, 4, 4) 	| BIT(15), //7	Red Dark
	RGB15(9, 4, 7) 		| BIT(15)  //8	Empty
};
u8 player_health[5][256] = {
	//	EMPTY
	{	0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
		0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0,
		0, 0, 0, 1, 1, 1, 0, 0, 0, 0, 1, 1, 1, 0, 0, 0,
		0, 0, 1, 2, 2, 2, 3, 0, 0, 1, 2, 2, 2, 3, 0, 0,
		0, 1, 2, 8, 8, 8, 2, 3, 1, 2, 8, 8, 8, 2, 3, 0,
		1, 2, 8, 8, 4, 4, 8, 2, 2, 8, 4, 4, 8, 8, 2, 3,
		1, 2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